cmake_minimum_required(VERSION 3.8)
project(target_prop_define)

add_executable(hello hello.cpp)

get_property(var1 TARGET hello PROPERTY target_prop DEFINED)
message(STATUS "target_prop is defined? = ${var1}")

define_property(TARGET PROPERTY target_prop BRIEF_DOCS "target docs" FULL_DOCS "target full docs")
get_property(var2 TARGET hello PROPERTY target_prop DEFINED)
message(STATUS "target_prop is defined? = ${var2}")

define_property(TARGET PROPERTY target_prop2 INHERITED BRIEF_DOCS "target docs" FULL_DOCS "target full docs")
get_property(var3 TARGET hello PROPERTY target_prop2 DEFINED)
message(STATUS "target_prop2 is defined? = ${var3}")
